package pagelib;

public class CredoHome extends Page{
	
	public void openHome()
	{
		bo.open("/");
		bo.waitForPageToLoad("30000");
	}
	public void clickMenuItem(String menu)
	{
		clickVisibleLink(menu);
	}
	public void clickSubMenu(String menu, String submenu)
	{
		bo.mouseOver(menu);
		clickVisibleLink(submenu);
	}
	public boolean checkIfMenuPresent(String menu)
	{
		boolean res;
		res=isElementVisible(menu);
		return(res);
		
	}
	public boolean checkSubmenuPresent(String menu, String submenu)
	{

		bo.mouseOver(menu);
		return(isElementVisible(submenu));	
	}

}
